//
//  BusinessModel.m

#import "BusinessModel.h"

@implementation BusinessModel
- (instancetype)initWithDictionary:(NSDictionary *)dict {
    

    BusinessModel *model = [[BusinessModel alloc] init];
    
    model.name = dict[@"name"];
    model.address = dict[@"address"];
    model.ID = [dict[@"id"] intValue];
    model.city = dict[@"city"];
    model.latitude = [dict[@"latitude"] doubleValue];
    model.longitude = [dict[@"longitude"] doubleValue];
    model.h5_url = dict[@"h5_url"];
    
    return model;
}
@end
